function [permutations] = ST_TargetListPermutations(targetList)
%ST_TargetListPermutations Summary of this function goes here
% Detailed explanation goes here
rows = size(targetList, 1);
cols = size(targetList, 2);
permutations = 1;
for row_nr = 1:rows
  list_length = 0;
  for col_nr = 1:cols
    if targetList(row_nr, col_nr) <= 0
      break;
    else
      list_length = list_length + 1;
    end
  end
  nr_permutations = factorial(list_length);
  permutations = permutations * nr_permutations;
end
end